@extends('layout.admin.index')
@section('content')
<body>
<div class="panel admin-panel">
  <!-- 子标题显示 友情链接添加-->
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>{{ $title }}</strong></div>
  <div class="body-content">

    <!-- 友情链接添加开始-跳转执行添加路由 -->
    <form method="post" class="form-x" action="/admin/fris/doadd" enctype="multipart/form-data">  
    {{ csrf_field() }}
      <div class="form-group">
      </div>


      <!-- 添加logo -->
      <!-- 修改logo -->
      <div class="form-group">
        <div class="label" style="margin-top:35px">
          <label>用户头像：</label>
        </div>
        <div class="field" >
          <input type="file" class="inputPic" name="pic" style="float:left;margin-top:8px" id="img" value="aa"  allowexts="gif,jpeg,jpg,png,bmp" accept="image/*" onchange="info(this)">
          <!-- 图片第一次添加选择默认值 -->
          <img src="/images/admin/fris_pic/default.jpg" alt="" width="100px" height="100px" id="picinfo" id="picinfo" style="float:left">
          <div id="tishi" style="float:left;height:100px;line-height:100px"><font color="#aac">　(上传图片类型(jpeg、png、gif)，大小不超过4M)</font></div>
        </div>
      </div> 

      <!-- 添加标题 -->
      <div class="form-group">
        <div class="label">
          <label>链接标题：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="fri_title"/>
          <div class="tips"></div>
          <div style="color:#aac;margin-top:45px">(鼠标经过图片显示的字段)</div>
        </div>
      </div>


      <!-- 添加描述 -->
      <div class="form-group">
        <div class="label">
          <label>链接描述：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="fri_descript"/>
          <div class="tips"></div>
        </div>
      </div>

      <!-- 添加url -->
      <div class="form-group">
        <div class="label">
          <label>链接url：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="fri_url"/>
          <div class="tips"></div>
        </div>
      </div>

      <!-- 创建时间 -->
      <input type="hidden" name="fri_time" value="{{ date('Y-m-d H:i:s',time()) }}">

      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
          <a href="/admin/fris/index"  class="button bg-main icon-mail-reply">&nbsp返回</a>
        </div>
      </div>
    </form>
    <!-- 链接添加结束 -->
  </div>
</div>
</body>
@endsection